<?php

namespace App\Repository\Repositories\Interfaces;

/**
 * Interface ProductsRepository.
 *
 * @package namespace App\Repository\Repositories\Interfaces;
 */
interface ProductsRepository extends RepositoryInterface
{
    public function createNew($data);

    //增加评论数
    public function incrementCommentCount($product_id, $comment_score);

    //橱窗数统计
    public function cupboardCount($shop_id,$value=1,$product_type=1);
    
    //批量删除
    public function batchDelete($ids);
    
    //批量上下架
    public function batchSale($data);
    
    //批量审核
    public function batchStatus($data);
    //商品推荐至首页+首页排序
    public function setRecommend($id,$status=0,$sort=2);
}
